package com.ihcil.forecast.demo.pyscripts;

import org.springframework.stereotype.Component;
import java.io.IOException;

/**
 * Create by @baseException on 2022/11/4 10:34
 */

@Component
public class PyScripts {
    public void runPython() throws IOException {
        String[] command = {"F:\\Anaconda\\anaconda\\envs\\pytorch\\python.exe", "E:\\ifstartjustcarryon\\wmj_forecast\\model\\model.py"};
        Runtime.getRuntime().exec(command);
    }
}
